package cn.group.hotel2.pojo.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Order implements Serializable {

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("订单编号")
    private String orderNum;
    @ApiModelProperty("房间标题")
    private String roomTitle;
    @ApiModelProperty("客户id")
    private Long costumerId;
    @ApiModelProperty("入住时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime checkInTime;
    @ApiModelProperty("退房时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime checkOutTime;
    @ApiModelProperty("订单总价")
    private Double sumPrice;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime gmtCreate;
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime gmtModified;
}
